package cn.tedu.xuecha.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 添加内容表的DTO类
 *
 * @author java@tedu.cn
 * @version 0.0.1
 */
@Data
public class ContentAddNewDTO implements Serializable {


    /**
     * 类别id
     */
    @ApiModelProperty(value = "类别ID", required = true)
    @NotNull(message = "添加类别ID，必须提交类别ID！")
    private Integer categoryId;
    /**
     * 编辑器类型[markdown 富文本]
     */
    @ApiModelProperty(value = " 编辑器类型", required = true)
    private String editor;
    /**
     * 标题
     */
    @ApiModelProperty(value = "标题", required = true)
    @NotNull(message = "添加标题失败，必须提交标题！")
    private String title;
    /**
     * 摘要
     */
    @ApiModelProperty(value = "摘要", required = true)
    private String brief;
    /**
     * 关键字,标签对应的id:name json对
     */
    @ApiModelProperty(value = "关键字,标签对应的id:name json对", required = true)
    private String keywords;
    /**
     * 排序号
     */
    @ApiModelProperty(value = "排序号", required = true)
    private Integer sort;
    @ApiModelProperty(value = "封面图", required = true)
    private String  coverUrl;
    @ApiModelProperty(value = "媒体类型", required = true)
    private Integer mediaType;
    @ApiModelProperty(value = "媒体URL", required = true)
    private String mediaUrl;
    @ApiModelProperty(value = "创建人", required = true)
    private String createUserName;
  


}